package com.ruoyi.sywx.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发帖人信息业务对象 sywx_poster
 *
 * @author ruoyi
 * @date 2024-01-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SywxPosterBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 网名
     */
    @NotBlank(message = "网名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String netName;

    /**
     * 发帖人姓名
     */
    @NotBlank(message = "发帖人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
     * 住址
     */
    private String address;

    /**
     * 身份证号
     */
    private String idCard;

}
